import request from '@/utils/request'
// 测试接口调用
type loginPasswordReq = {
  mobile: string
  password: string
}
type loginPasswordApi = {
  token: string
  id: string
  account: string
  mobile: string
  avatar: string
  refreshToken: string
}
// export const loginPassword = (data: loginPasswordReq) => {
//   return request<loginPasswordApi>({
//     url: '/login/password',
//     method: 'POST',
//     data
//   })
// }
export const loginPassword = (data: loginPasswordReq) => {
  return request<loginPasswordApi>('/login/password', 'post', data)
}
